﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Bird : Animal, IFlyable
    {
        public Bird(string name) : base(name)
        {
            this.Name = name;
        }
        public void fly()
        {
            Console.WriteLine("我{0}能飞", this.Name);
        }

        public void land()
        {
            Console.WriteLine("我{0}能着陆", this.Name);
        }

        public void takeoff()
        {
            Console.WriteLine("我{0}能起飞", this.Name);
        }
        public void layeggs()
        {
            Console.WriteLine("我{0}能下蛋", this.Name);
        }
    }
}
